<template>
  <div>
    <button @click="getStduetnsList">获取学生信息</button>
  </div>
</template>

<script>
export default {
    name:'getStudents',
    methods: {
        getStduetnsList() {
            this.$http.get('/api/students').then((result) => {
                console.log(result)
            }).catch((err) => {
                console.log("请求失败了");
                console.log(err.message)
            });
        }
    },
}
</script>

<style>

</style>